#!/bin/bash

START="no"

if [ "$XIM" = "ibus" ]; then
  START="yes"
fi

if [ "$XIM_PROGRAM" = "ibus" ]; then
  START="yes"
fi

if [ "$GTK_IM_MODULE" = "ibus" ]; then
  START="yes"
fi

if [ "$QT_IM_MOFULE" = "ibus" ]; then
  START="yes"
fi

if [ "$START" = "yes" ]; then
  ibus-daemon -drx
fi
